package com.sky.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "CategoryDTO", description = "新增/修改分类的数据传输对象")
public class CategoryDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类主键ID（新增时可为空，修改时必须提供）", example = "null")
    private Long id;

    @ApiModelProperty(value = "分类类型（1: 菜品分类，2: 套餐分类）", example = "1", required = true)
    private Integer type;

    @ApiModelProperty(value = "分类名称", example = "特色家常菜", required = true)
    private String name;

    @ApiModelProperty(value = "排序优先级（数值越小排序越靠前）", example = "16", required = true)
    private Integer sort;
}
